package top.fucun.bsm.core.datasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @Author: lifucun
 * @Date: 2020/12/21 17:35
 */
public class DynamicDataSource extends AbstractRoutingDataSource  {


    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicDataSourceContextHolder.getDataSourceRouterKey();
    }
}
